﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FineSoft.Models
{
	public abstract class Model : System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging
	{
		protected void RaisePropertyChanging(string name)
		{
			if (this.PropertyChanging != null)
				this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(name));
		}

		protected void RaisePropertyChanged(string name)
		{
			if (this.PropertyChanged != null)
				this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(name));
		}

		#region INotifyPropertyChanged 成员

		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

		#endregion

		#region INotifyPropertyChanging 成员

		public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging;

		#endregion
	}
}